package com.jinzecloud.ordersystem.service.impl;

import com.jinzecloud.ordersystem.bean.SpCart;
import com.jinzecloud.ordersystem.mapper.SpCartMapper;
import com.jinzecloud.ordersystem.service.SpCartService;
import com.jinzecloud.ordersystem.utils.PageUtils;
import com.jinzecloud.ordersystem.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



@Service("spCartService")
public class SpCartServiceImpl extends ServiceImpl<SpCartMapper, SpCart> implements SpCartService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SpCart> page = this.page(
                new Query<SpCart>().getPage(params),
                new QueryWrapper<SpCart>()
        );

        return new PageUtils(page);
    }

}